/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.cslg.dorm.entity;

import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 宿舍楼Entity
 * @author 张文锦
 * @version 2017-02-11
 */
public class DormBuilding extends DataEntity<DormBuilding> {
	
	private static final long serialVersionUID = 1L;
	private String danyuan;		// 宿舍单元
	private String lh;		// 楼号
	private String sex;		// 性别
	private String isfull;		// 是否住满
	private String remark;		// 备注信息
    private int floorNum;       //楼层高度
	private int roomNum;        //每层楼宿舍个数
	private int maxStuNumb;     //宿舍可住人数
	
	private List<DormRoom> dormRoomList = Lists.newArrayList();		// 子表列表
	
	public DormBuilding() {
		super();
	}

	public DormBuilding(String id){
		super(id);
	}
	@Length(min=1, max=1, message="宿舍单元长度必须介于 1 和 1 之间")
	public String getDanyuan() {
		return danyuan;
	}

	public void setDanyuan(String danyuan) {
		this.danyuan = danyuan;
	}
	
	@Length(min=1, max=10, message="楼号长度必须介于 1 和 10 之间")
	public String getLh() {
		return lh;
	}

	public void setLh(String lh) {
		this.lh = lh;
	}
	
	@Length(min=1, max=1, message="性别长度必须介于 1 和 1 之间")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
	@Length(min=1, max=2, message="是否住满长度必须介于 1 和 2 之间")
	public String getIsfull() {
		return isfull;
	}

	public void setIsfull(String isfull) {
		this.isfull = isfull;
	}
	
	@Length(min=0, max=255, message="备注信息长度必须介于 0 和 255 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	public List<DormRoom> getDormRoomList() {
		return dormRoomList;
	}

	public void setDormRoomList(List<DormRoom> dormRoomList) {
		this.dormRoomList = dormRoomList;
	}
	public int getFloorNum() {
		return floorNum;
	}

	public void setFloorNum(int floorNum) {
		this.floorNum = floorNum;
	}

	public int getRoomNum() {
		return roomNum;
	}

	public void setRoomNum(int roomNum) {
		this.roomNum = roomNum;
	}

	public int getMaxStuNumb() {
		return maxStuNumb;
	}

	public void setMaxStuNumb(int maxStuNumb) {
		this.maxStuNumb = maxStuNumb;
	}
	
}